﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cobit5.Web.Cobit
{
    public partial class SizeablePanel : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            /*** 读取Session的User_Role，若非管理员Admin，则禁用 ***/
            try
            {
                if (Session["User_Role"].ToString() != "Admin")
                    Sizeable_Edit.Visible = false;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
    }
}